package com.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usercenter.model.User;

import javax.servlet.http.HttpServletRequest;

/**
* @author Vv
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2024-06-22 20:00:58
*/
public interface UserService extends IService<User> {
    
    
    /**
     * 用户注释
     * @param userAccount 用户账户
     * @param userPassword 用户密码
     * @param checkPassword 验证密码
     * @return 用户id
     */
    long UserRegister(String userAccount,String userPassword,String checkPassword,String planetCode);
    
    
    /**
     * 用户登录
     * @param userAccount 用户账户
     * @param userPassword 用户密码
     * @return User
     */
    User UserLogin(String userAccount, String userPassword, HttpServletRequest request);
    
    
    User getSafeUser(User user);
    
    /**
     *  用户注销
     * @param request
     *
     */
    int UserLogout(HttpServletRequest request);
}
